package com.bridgeintelligent.tag.webserver.dim.mgmt.service.dim.vo;

import com.bridgeintelligent.tag.mapper.EsTimeDataMapper;
import com.bridgeintelligent.tag.webserver.dim.mgmt.api.EsTimeModel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.util.List;

@Slf4j
@Component
public class TestUtil {

    public static TestUtil testUtil;

    @PostConstruct
    public void init() {
        testUtil = this;
    }

    @Autowired
    private EsTimeDataMapper mapper;

    public static void checkCount(){

        List<EsTimeModel> list = testUtil.mapper.allTime();
        log.info("list.size:"+list.size());

    }



}
